import React, { Component } from 'react'


export default function withHocDemo(WrappedPage) {
  class WrappedComponent extends Component {
    // setTaroPageHeight = setTaroPageHeight

    componentDidMount() {
      // this.setTaroPageHeight('unset')
    }

    componentWillUnmount() {
      // this.setTaroPageHeight()
    }

    render() {
      return (
        <>
          <WrappedPage
            {...this.props}
          />
        </>
      )
    }
  }
  return WrappedComponent
}
